package com.tiny.shiro.web.filter;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.apache.shiro.web.filter.AccessControlFilter;

public class MyAccessControlFilter extends AccessControlFilter {
	protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue)
			throws Exception {
		System.out.println("access allowed");
		return true;
	}

	protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception {
		System.out.println("访问拒绝也不自己处理，继续拦截器链的执行");
		return true;
	}
}
